import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue'// 引入Ant Design Vue组件
import 'ant-design-vue/dist/antd.css' // 引入Ant Design Vue样式
import { Button, Dialog, ColorPicker, DatePicker, Slider } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
import  './assets/icon/iconfont.js'
import http from './api/request'
import config from './api/config'
import * as echarts from 'echarts';
import dataMethod from '../utils/time'
import _ from 'lodash';
import { add } from 'lodash/fp';
import moment from 'moment'
import '../utils/rem'
import Video from 'video.js'
import 'video.js/dist/video-js.css'
import VideoPlayer from 'vue-video-player'
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'

require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')

//import 'lib-flexible'

const addOne = add(1);
_.map([1, 2, 3], addOne);

Vue.prototype.$http = http;
Vue.prototype.$config = config;
Vue.prototype.$echarts = echarts;
Vue.prototype.$dataMethod = dataMethod;
Vue.prototype.$moment = moment;
Vue.prototype.$video = Video;
Vue.use(Antd) //挂载到vue中
Vue.use(dataMethod)
Vue.use(VideoPlayer)
Vue.use(preview)
Vue.use(Button)
Vue.use(Dialog)
Vue.use(ColorPicker)
Vue.use(Slider)
Vue.use(DatePicker)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
